package com.diors.autocode.xml;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 参数Model
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-21
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
@XmlRootElement(name = "PARAM")
@XmlAccessorType(XmlAccessType.FIELD)
public class ParamModel 
{

	@XmlMixed
    protected List<String> content;
	
	@XmlAttribute(name = "Name")
	private String name;
	
	@XmlAttribute(name = "TYPE")
	private String type;
	
	@XmlAttribute(name = "SIZE")
	private int size;
	
	@XmlAttribute(name = "TEXT")
	private String objetText;
	
	@XmlElement(name = "PARAM")
	private List<ParamModel> params;

	public List<String> getContent() {
		return content;
	}

	public String getName() {
		return name;
	}

	public String getType() {
		return type;
	}

	public int getSize() {
		return size;
	}

	public String getObjetText() {
		return objetText;
	}

	public List<ParamModel> getParams() {
		return params;
	}
}
